package org.accp.pojo;

public class Treat {
    private Integer trid;
    private String trName;
    private String trMoney;

    public Integer getTrid() {
        return trid;
    }

    public void setTrid(Integer trid) {
        this.trid = trid;
    }

    public String getTrName() {
        return trName;
    }

    public void setTrName(String trName) {
        this.trName = trName;
    }

    public String getTrMoney() {
        return trMoney;
    }

    public void setTrMoney(String trMoney) {
        this.trMoney = trMoney;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Treat treat = (Treat) o;

        if (trid != treat.trid) return false;
        if (trName != null ? !trName.equals(treat.trName) : treat.trName != null) return false;
        if (trMoney != null ? !trMoney.equals(treat.trMoney) : treat.trMoney != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = trid;
        result = 31 * result + (trName != null ? trName.hashCode() : 0);
        result = 31 * result + (trMoney != null ? trMoney.hashCode() : 0);
        return result;
    }
}
